package com.xingzhe.pengji.security.controller;

import java.util.ArrayList;
import java.util.List;


import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

public class DemoJson
{
    @JsonProperty("TotalSize")
    @JsonSerialize
    @JsonDeserialize
    private int totalSize;
    
    @JsonProperty("Options")
    @JsonSerialize
    @JsonDeserialize
    private List<Integer> list;
    
    public DemoJson(int totalSize)
    {
        this.totalSize = totalSize;
        List<Integer> l = new ArrayList<Integer>();
        for (int i = 0; i < totalSize; i++)
        {
            l.add(i);
        }
        this.list = l;
    }
    
    public int getTotalSize()
    {
        return totalSize;
    }
    
    public void setTotalSize(int totalSize)
    {
        this.totalSize = totalSize;
    }
    
    public List<Integer> getList()
    {
        return list;
    }
    
    public void setList(List<Integer> list)
    {
        this.list = list;
    }
    
}
